﻿using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace Sinacor.Infra.UI.Controls.SmartClient
{
    public class SinacorWindowHeader : Control  
    {
		public static readonly DependencyProperty CompanyProperty = DependencyProperty.Register("CompanyName", typeof(string), typeof(SinacorWindowHeader), new FrameworkPropertyMetadata(string.Empty));
		public static readonly DependencyProperty UserNameProperty = DependencyProperty.Register("UserName", typeof(string), typeof(SinacorWindowHeader), new FrameworkPropertyMetadata(string.Empty));
		public static readonly DependencyProperty MenuPathProperty = DependencyProperty.Register("MenuPath", typeof(ObservableCollection<string>), typeof(SinacorWindowHeader), new FrameworkPropertyMetadata(new ObservableCollection<string>()));

		public string CompanyName
		{
			get { return (string)GetValue(CompanyProperty); }
			set { SetValue(CompanyProperty, value); }
		}
		public string UserName
		{
			get { return (string)GetValue(UserNameProperty); }
			set { SetValue(UserNameProperty, value); }
		}
		public ObservableCollection<string> MenuPath
		{
			get { return (ObservableCollection<string>)GetValue(MenuPathProperty); }
			set { SetValue(MenuPathProperty, value); }
		}

        public SinacorWindowHeader() { }
        
        public SinacorWindowHeader(string companyName, string userName, ObservableCollection<string> menuPath)
        {
            this.CompanyName = companyName;
            this.UserName = userName;
            this.MenuPath = menuPath;           
        }
    }
}